package com.generator.controllers;

import com.alibaba.fastjson.JSONObject;
import com.generator.common.CommonResult;
import com.generator.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by IntelliJ IDEA.
 * User : andylin
 * Date : 2021/4/10
 * Time : 8:58
 * 注意代码的层次与规范
 */
@RestController

public class UserController {
    @Autowired
    UserService userService;

    @RequestMapping("/getCode")
    public CommonResult getCode(@RequestBody JSONObject params){
        return userService.getCode(params);

    }


}
